package org.example.order.service;


import org.example.dto.OrderDto;
import org.example.entity.Order;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author fanfutian
 * @since 2025-04-23
 */
public interface OrderService {


    /**
     * 添加订单
     * @param userId
     * @param
     */
    void addOrder(String userId, OrderDto orderDto);



    /**
     * 根据订单id查询订单
     * @param orderId
     * @return
     */
    Order getOrderByOrderId(Long orderId);



    /**
     * 根据用户id查询订单
     * @param userId
     * @return
     */
    List<Order> getOrderByUserId(Long userId);
}
